import request from '@/utils/requestMd5'

export function field_save(data) {
  return request({
    url: '/field/save',
    method: 'post',
    data:data
  })
}

export function images_delete(data) {
  return request({
    url: '/images/delete',
    method: 'post',
    data:data
  })
}

export function goods_getGoods(data) {
  return request({
    url: '/goods/getGoods',
    method: 'post',
    data:data
  })
}

export function setting_company(data) {
  return request({
    url: '/setting/company',
    method: 'post',
    data:data
  })
}

export function goods_getGoodsSpu(params) {
  return request({
    url: '/goods/getGoodsSpu',
    method: 'get',
    params
  })
}

const uploadPath = process.env.VUE_APP_BASE_API + '/upload/upload_file'
const upload_img = process.env.VUE_APP_BASE_API + '/upload/upload_img'
const puzzleImg = "https://caidj-image.oss-cn-beijing.aliyuncs.com/item/2009/22/ESG4OJFsyRc9qJ6VakNGQmiL8tXTqRzWh2VSPTcT.png"

export { uploadPath, upload_img, puzzleImg }